#!/bin/bash < is only here to enable Kate bash highlighting

# ppweb.conf is the configuration file for all scripts
# ppweb.cft can be used as a configuration file template (initially identical)

# USAGE

# WFNZB.CGI
#
# http://foo/wfnzb.cgi for watch list page with links to default browse pages
#
# The browse page links will trigger an update if the pages do not exist.
#
# You may need to do another update before the default browse 
# pages have links to all browsable pages (if the first new page to get 
# written is the default page)

# '/path/to/wfnzb.cgi nzbget_task' for scheduler >= 0.7.0-testing-r315

# http://foo/wfnzb.cgi?Nzbsrus_update to manually update the Nzbsrus browse pages 
# http://foo/wfnzb.cgi?Nzbsrus_browse to access the Nzbsrus default browse page

# TODO: other scripts

# CONFIGURATION

# Set the $Config variable and require path at the top of all scripts
# Set any necessary and optional variables in this file. 
# Any variables without an 'empty' option must be set.

# This configuration file can have Perl and/or shell variable definitions
#
# String values may be quoted
# Definitions may end in a semicolon
# True values can be yes or 1
# False values can be no, 0 or empty/undef(ined)
# Disabled/unused variables can be empty or commented (optional value)
# List values can be comma(space) or bar/pipe separated

# This file is compatible with the nzbgetweb configuration interface
# Use ppweb.cft as the template and ppweb.cfg as the configuration file
# Note: both files must exist, nzbgetweb won't create ppweb.cfg.
# Note: Nzbgetweb won't warn you if it doesn't have adequate permissions and
# cannot save ppweb.cfg, the webserver should own it (or make it world writable)
# Note: Make sure to save each section after editing it.

### Paths ###

# Full path to your PPWeb dir.
#
# NOTE: All other Dir variables can be sub-directories of PPWebDir
# Using the directory tree provided, ScriptDir is the only other
# variable on this page that you may want/need to change.
#
# NOTE: Directories should have the same owner as the server process.
# When they don't they will need world write permissions.
#
# '/full/path/dir'
PPWebDir=/var/www/html/ppweb/ppweb

# Data directory - where to store script built/maintained pages.
# wfnzb_watch.txt, ep title lookup, etc pages. Required.
#
# '/full/path/dir' or 'subdir' of PPWebDir
DataDir=data

# Path to PPWeb database file.
#
# DbCats determines what titles get automatically added to the db (see Categories).
# Already downloaded nzb titles (episodes) are grayed on browse/search pages.
# DbFile is also used to catch missed watch list episodes (show (n)nnn format).
# Titles on browse pages can be added and flagged (e.g. seen, ignore, etc.)
# Format is title, id/flag, imdb, desc. Minimum entry is title and 3 tabs.
#
# '/full/path/file' or 'filename' in DataDir
DbFile=ppweb_db.txt

# Path to Watch List file.
#
# '/full/path/file' or 'filename' in DataDir
WatchFile=ppweb_watch.txt

# DestDir - full path to NZBGet download directory, same as NZBGet DestDir.
#
# Using SaveDir is the best way to control where downloaded/extracted files end up.
#
# NOTE: If you need to change this setting for some reason, be sure to run (u)pdate.
# Update will set the nzbget.conf DestDir setting to match this setting (required).
#
# '/full/path/dir' or 'subdir' of PPWebDir
DestDir=download

# Hold directory - where to place nzbs that you don't want to auto queue.
#
# Note: This cannot be located in NzbDir or it will be scanned and
# nzbs placed in it will be auto queued.
#
# Note: this directory is required if you want to download custom samples.
#
# '/full/path/dir', 'subdir' of PPWebDir, or empty/0/no to disable
HoldDir=hold

# Html directory - where to store script built/maintained html pages.
#
# To access the html pages, this needs to be in your server tree.
# Default PPWebDir/HtmlDir = /var/www/html/ppweb/ppweb/html.
#
# Without this you are limited to very basic functionality (0 web functions).
#
# '/full/path/dir' or 'subdir' of PPWebDir
HtmlDir=html

# Lib directory - location of the script function files.
#
# Library files do not need execute permissions and can be read only.
#
# '/full/path/dir' or 'subdir' of PPWebDir
LibDir=lib

# Location of html nfo files.
#
# When nfos are found during processing the nfos can be
# converted to html pages. Links to the html nfos will
# be included on various pages e.g. Db search results.
#
# '/full/path/dir', 'subdir' of PPWebDir, or empty/0/no to disable
NfoDir=nfos

# Full path to your nzb dir - same as nzbget NzbDir.
#
# see also: Categories (below).
#
# NOTE: Run update after changing this to automatically update 
# the nzbget.conf NzbDir setting.
#
# '/full/path/dir' or 'subdir' of PPWebDir
NzbDir=nzb

# Path to SampleDir.
#
# Where to put processed sample downloads.
# Samples require Sample nzb subcategories.
# e.g. An nzb placed in nzb/TV/Sample will result in a sample saved to the SampleDir. 
# Clicking on resume from the hold directory will queue the nzb in the TV directory.
#
# '/full/path/dir' (local or remote) or 'subdir' of PPWebDir
SampleDir=samples

# Path to your script dir.
#
# If you change this you also need to change the CgiUrl path 
# near the bottom of the URLs section.
#
# NOTE: The easiest way to change all relevant settings is to copy the 
# contents of the default cgi-bin to you desired directory, edit ppweb_update.cgi,
# then run the script by manually entering the URL to the new location. 
#
# '/full/path/dir' or 'sub-directory' of PPWebDir
ScriptDir=cgi-bin

### URLs ###

# Protocol - (http://, https://).
#
# Allows you to run PPWeb on a SSL secured site.
# This will be set to the protocol you use to run the configure script
#
# http:// or https://
Protocol=http://

# Hostname or IP address.
#
# This was added to allow the use of custom ports.
# 
# In most cases you can leave this empty.
# If you use a non standard port, this will be set by the configure script.
#
# foo.com, foo.com:nn, xxx.xxx.xxx.xxx, etc
Host=

# Nzbget Webui IP address:port.
#
# This only matters if you want to use the Nzbget builtin webui for your home page.
# The defaut host:6788 is set by the configure/update script.
# You may need to set this manually to [your server IP address]:6788.
# Default port is 6788 unless you've changed Nzbget(web) ServerPort/ControlPort.
uiHost=

# Home page name for Return to: [HomeName] links - (NzbgetWeb, NZBGet).
#
# PPweb will work with NZBGet's new webui and the old NzbgetWeb web interface.
# The NzbgetWeb interface is included with PPWeb and is the default setting.
# To use the new web inteface the webui directory needs to be a 
# subdirectory of your main PPWeb directory (like nzbgetweb).
#
#
# NOTE: The name you select here now determines your nzbget home page, nzbgetweb or the new webui
# The default is still NzbgetWeb, but the link will now take you to /nzbgetweb/index.php.
# /index.php has been replaced w/ index.html (placeholder) to allow you to use the new webui.
# If you want to use the new webui, select NZBGet and make sure uiHost (above) is set/correct.
#
# NzbgetWeb or NZBGet.
HomeName=NzbgetWeb

# Relative PPWeb URL - http://host[HomeUrl].
#
# Since r119 the default is /ppweb/ - http://host/ppweb/.
#
# NOTE: This and HomeName (above) are no longer directly related (unless you select PPWeb).
# This is set by the configure/update script and should only be changed in ppweb_update.cgi.
# 
# '/' or host '/sub-directory/'
HomeUrl=/ppweb/

# Relative PPWeb URL - http://host[PPWebUrl].
#
# The default is ppweb - http://host[HomeUrl]ppweb.
#
# Default directory structure.
# ppweb (HomeUrl).
#   nzbgetweb (nzbget web interface).
#   ppweb (PPWebUrl).
#      all nzbget and ppweb functions (sans nzbget web interface) .
#   webui (nzbget web interface).
#
# NOTE: There is no reason to change this setting, or any
# of the following settings on this page.
# CgiUrl changes are best done as noted below.
#
# '/relative/path/dir' or 'subdir' of HomeUrl
PPWebUrl=ppweb

# Relative HtmlDir URL - http://host[HtmlUrl]/file.
#
# Needed when browse pages are auto updated by nzbget scheduler or cron.
#
# The default is html - http://host/ppweb/ppweb/html.
#
# '/relative/path/dir' or 'subdir' of PPWebUrl
HtmlUrl=html

# Relative html NfoDir URL - http://host[NfoUrl]/file.
#
# For html nfo viewing links.
#
# The default is nfos - http://host/ppweb/ppweb/nfos.
#
# '/relative/path/dir' or 'subdir' of PPWebUrl
NfoUrl=nfos

# Relative DestDir URL - http://host[DestDir]/file.
#
# For Download dir links that allow downloading to another PC.
# This is only useful if DestDir is in the PPWeb tree.
#
# The default is download - http://host/ppweb/ppweb/download.
#
# '/relative/path/dir', 'subdir' of PPWebUrl or empty/0/no
DestUrl=download

# Relative script directory URL - http://host[CgiUrl].
#
# Needed when browse pages are auto updated by nzbget scheduler or cron.
#
# Note: Run update after changing this to automatically update 
# nzbget.conf and settings.php settings.
# If you change this you also need to change the ScriptDir path 
# at the bottom of the Paths section. 
#
# NOTE: The easiest way to change all relevant settings is to copy the 
# contents of the default cgi-bin to you desired directory, edit ppweb_update.cgi,
# then run the script by manually entering the URL to the new location. 
#
# The default is cgi-bin - http://host/ppweb/ppweb/cgi-bin.
#
# '/relative/path/dir' or 'subdir' of PPWebUrl
CgiUrl=cgi-bin

# Watch list and nzb browse/search/processing functions
#
# The default is wfnzb.cgi - http://host/ppweb/ppweb/cgi-bin/wfnzb.cgi.
#
# '/relative/path/script' or CgiUrl 'filename'
WfCgi=wfnzb.cgi

# Db search and edit functions
#
# The default is ppweb_db.cgi - http://host/ppweb/ppweb/cgi-bin/ppweb_db.cgi.
#
# '/relative/path/script' or CgiUrl 'filename'
DbCgi=ppweb_db.cgi

### Logging ###

# Location of log files.
#
# The default configuration is to have all log files in a single directory.
# PPWebDir/LogDir - /var/www/html/ppweb/ppweb/logs.
#
# '/full/path/dir' or 'subdir' of PPWebDir
LogDir=logs

# NzbgetLog - path to nzbget.log.
#
# Used for building a html nzbget.log page.
#
# NOTE: Run update after changing this to automatically update 
# the nzbget.conf LogFile setting.
#
# '/full/path/nzbget.log' or 'filename' in LogDir
NzbgetLog=nzbget.log

# Path to script log.
#
# '/full/path/wfnzb.log' or 'filename' in LogDir
ScriptLog=ppweb.log

# Path to status log.
#
# '/full/path/wfnzb.log', 'filename' in LogDir or empty/0/no to disable
StatusLog=status.log

# NzbgetWeb page Post Process status block (lines).
#
# When StatusLog is enabled, the last n lines can be printed to NzbgetWeb
#
# 1 to 99... or empty/0/no to disable
StatusBlock=5

# Log Level for ScriptLog and full view html logs (1,2,3,4,5).
#
# 1 = ERROR, 2 = WARNING, 3 = INFO, 4 = DETAIL, 5 = DEBUG
LogLevel=5

# Maximum log lines - trim and view full html logs (lines).
#
# This function/view is reached via a link on the default log view pages.
# When clicked the log is trimmed (to the number of lines you enter here) 
# and saved before it is displayed.
#
# The server error.log is an exception because the method used would change its inode.
# (Apache wouldn't know about the new inode without a reload).
#
# 1 to 9999...
LogLines=3000

# Html log level for default/short/tailed log view (1,2,3,4,5).
#
# This allows you to reduce the default log view to primary messages.
# Note: html view only, no logs are modified.
#
# 1 = ERROR, 2 = WARNING, 3 = INFO, 4 = DETAIL, 5 = DEBUG
TailLevel=4

# Html log lines for default/short/tailed log view (lines).
#
# 1 to 9999...
TailLines=400

# Ppweb > Nzbget log level (,0,1,2,3,4,5).
#
# What PPWeb messages to also print to Nzbgetweb log view and nzbget.log.
# The maximum log/screen levels are set in nzbget.conf (LOGGING).
#
# Note: Some errors will return you to the main nzbgetweb page,
# setting this to at least 1 (ERROR) will save you a trip to the ppweb log.
#
# Note: A lower setting will use less system resources - each print
# to nzbget screen/log requires a system call.
#
# 1 to 5 or empty/0/no to disable
NzbgetLevel=3

# DevTxt - for debuging nzb site response (,yes,no).
#
# Do not leave this set to yes.
# Set to yes, do a manual page update on failing site and then set it to no.
# A link to dev.txt will be added to the bottom menu of log viewing pages.
# note: the link and file will be deleted during the next update.
# Send me dev.txt.
#
# 1/yes = enable, 0/no/empty = disable
DevTxt=


### General ###

# NzbgetRun - how to send commands to nzbget.
#
# The package default is "/var/www/html/ppweb/ppweb/cgi-bin/nzbget -c /var/www/html/ppweb/ppweb/conf/nzbget.conf".
#
# This option allows providing a path to the binary and/or a path to the nzbget configuration file.
#
# NOTE: The update script will adjust the paths if if needed - manual editing not recommended.
#
# nzbget, 'nzbget -c /pathto/config', '/pathto/nzbget' or '/pathto/nzbget -c /pathto/config'
NzbgetRun=/var/www/html/ppweb/ppweb/cgi-bin/nzbget -c /var/www/html/ppweb/ppweb/conf/nzbget.conf

# Nzbget revision.
#
# Some new features don't work with older versions of nzbget.
# If this isn't set, enter your nzbget (not ppweb) three digit revision number. 
# This should be automatically set/maintained by the configure/update script.
NzbgetRev=

# Nice - lower system priority for par2, unrar, avimerge and remote PP.
#
# Set this to minimize the impact of resource intensive programs and processes.
#
# The configure/update script will try to provide a setting that you can enter here (sans quotes).
# The provided setting will be for maximum niceness using nice (CPU) and/or ionice (disk).
# 'nice -n 19' is the nicest CPU setting. Priority can be -n -20 (highest priority) to -n 19 (lowest priority).
# 'ionice -c2 -n7' is nicest best effort IO setting (-n[1-7], pretty darn nice when combined with nice -n 19).
# 'ionice -c3' (idle) will only get disk time when no other process wants it, so technically the nicest setting.
#
# Whatever you enter here will be prepended to the Par2, Unrar and Avimerge settings below.
# e.g. /bin/nice -n 19 /usr/bin/ionice -c2 -n7 /usr/bin/par2.
# When using Remote PP, this setting will also be prepended to shh and rsync commands.
#
# NOTE: If you prepend nice/ionice commands to the commands below (< r143 method and still OK), leave this empty.
# The setting was re introduced to allow its usage with Remote PP (rsync and ssh).
#
# your (io)nice command(s), e.g. '/bin/nice -n 19 /usr/bin/ionice -c2 -n7' (no quotes), or empty
Nice=

# Par2 - how to send commands to par2.
#
# /path/to/par2 or par2
Par2=par2

# Use PPWeb for par check/repair (,yes,no).
#
# PPWeb has builtin par check/repair functions that are needed for 
# remote post processing. Local PP can use nzbget or ppweb for check/repair.
#
# The PPWeb check/repair function is different from the NZBGet one and may
# be faster or more effective in some cases. It includes special handling
# for broken/empty par files, split files (avi, mkv or ogm), etc.
#
# yes/1 = use PPWeb, no/0/empty = use NZBGet
PPWebPar=

# Unrar - how to send commands to unrar.
#
# /path/to/unrar or unrar
Unrar=unrar

# Unrar Folders (,yes,no).
#
# When set to yes, urar will recreate any directories contained in an archive.
# This is the default because there are cases where the directory tree is important.
# This is the unrar "x" command.
#
# When set to no, unrar will always extract everything in the archive to a single directory.
# While potentially useful, the default is typically the best choice. 
# This is the unrar "e" command.
#
# yes/empty = keep archive folders, no = don't
UnrarFolders=yes

# Unzip - how to send commands to unzip.
#
# /path/to/unzip or unzip
Unzip=unzip

# Gunzip - how to decompress .gz files.
#
# This is only needed/used for Binsearch and only if your LWP doesn't support decompression.
# You only need this if nzb's downloaded using Binsearch.html are not usable.
# If this is needed, you also need to set NoZlib to 1 at the top of binsearch.pm
#
# /path/to/gunzip or gunzip
Gunzip=gunzip

# Avimerge - how to send commands to avimerge or mencoder.
#
# Used to create a single avi from two part/CD avi's.
#
# Staring in r140 you can use avimerge or mencoder.
# The PP script checks this setting for an avimerge or mencoder match.
#
# /path/to/avimerge, /path/to/mencoder, avimerge or mencoder
Avimerge=

# Submitting web interface forms (post,get).
#
# NOTE: At the moment, only ppweb_db.cgi and wfnzb.cgi have this option.
#
# typically "post"
FormMethod=post

# File permissions.
#
# Overide your systems default file permissions.
# "022" is pretty standard/safe and may be needed with some server setups.
# 022 directories: drwxr-xr-xr (755) 022 files: rw-r--r-- (644)
# In rare cases a more permissive setting may be required (000 = 777/666 - world read/write).
#
# NOTE: This (and nzbget umask) is (un)set by the update script - make changes in ppweb_update.cgi.
UMask=

# Enable CGI.pm redirect (,yes,no).
#
# While 'print "Location: URL\n\n"' is the standard method of redirecting 
# cgi scripts, the uhttpd web server appears to have issues with it.
# This option uses the CGI.pm 'print $cgi->redirect()' method, which 
# appears to work fine with uhttpd, as well as apache and lightttpd.
# Because of this, ppweb now uses this method whenever 
# CGI.pm is already loaded and being used for other tasks.
# Because I hate loading unnecessary libraries, I've made it optional in cases 
# where CGI.pm isn't needed for any other tasks.
# 
# yes = always use CGI.pm for redirects, no/empty = CGI.pm isn't needed for redirects.
CgiRedirect=yes

# How many seconds to sleep when swaping News Server priorities (0-99).
#
# There is a menu link that allows you to swap News Server priority.
# This is a simple function that assumes your primary server is 
# Server1.Level = 0 and your secondary is Server2.Level = 1.
# The link is used to swap the priority settings back and forth.
# I use this because I hate seeing a bunch of warnings when Server1 doesn't have a post.
#
# If the script doesn't pause before nzbget restarts, some News Servers will return errors.
# Apparently they keep the previous connection(s) open for some period of time.
# I have no idea how many seconds may be required, the current default is 5.
# 
# NOTE: Do not use the manual switch if you enable Monitor (next).

# Weather or not to run the news server auto switching monitor script (yes,no).
#
# The monitor script (and manual side menu switch) assumes your primary server is 
# Server1.Level = 0 and your secondary is Server2.Level = 1.
# It will automatically swap the priority settings based on entries in the nzbget.log.
# When download failures are detected it switches the Server2.Level to 0 (S1>1).
# When errors are no longer detected, it switches the Server1.Level to 0 (S2>1).
# When nothing is written to the log for 30min, the script is terminated.
# If the monitor script isn't running when an nzb is queued, it will be started.
# The frequency of log checks adjusts relative to the frequency of log updates.
# The maximum frequency is every 15 seconds, the minimum is every 30 minutes.
# A server priority switch requires at least 4 of 10 messages to be failures.
# The auto adjusting frequency and failure percentage are a best guess.
# While it should be harmless, the script needs more testing and may not work as advertised. 
#
# Note: Configure:LOGGING:DetailTarget none (or screen) is recommended.
# Monitor=no

### Categories ###

# Categories - sub-directories of NzbDir, DestDir and SaveDir, also known as categories.
#
# The nzb sub-directory-name you save your nzb to will be the DestDir 
# sub-directory/Category that files are downloaded to.
# Categories are also sub-directories of SaveDir where extracted 
# and other selected files can be moved/saved.
#
# Categories do not need to include parent directories, e.g. all my
# Music downloads go to Music/New and I do not list Music as a category.
#
# To enable custom sampling for a category add a Sample sub category, e.g. Movies/Sample.
# When an nzb is sent to a Sample category, PPWeb will download 
# a partial rar set and extract a partial file for playback.
# Currently supported extensions are mp4, avi, ogm and mkv.
# Note: Split file samples (e.g. .mkv.001) are not extracted/joined.
# They are left in the Dir's: download where URL or scp links can be used to view them.
# Note: Some players don't play samples (well), VLC seems to do the best w/ the most formats.
# See also: the last three settings (NzbRars, NzbTrim, NzbSave) on the Nzbs settings page.
#
# NOTE: Run update after changing this to automatically create new
# nzb sub-directories and update the settings.php Categories setting.
#
# '', 'subdir' or 'subdir1, subdir2, subdir2/sub-subdir' 
Categories=Movies, TV, Movies/Sample, TV/Sample

# Parent directory for watch list/auto downloaded TV nzbs - NzbDir/TvNzbs.
#
# Use HoldDir to send nzbs to the hold directory for later queueing.
#
# See also: PP Save/Delete/Rename : TvCats and TvCatSeason.
#
# Note: an oversight on my part requires this be, or include, "TV" (case sensitive).
# Changes to allow anything are in process, but not a high priority.
#
# One of the above Categories, HoldDir, or empty/0/no (later untested)
TvNzbs=TV

# Default quality level when adding TV nzbs to the watchlist (HR,SR,SA,SX,H7,H1,DD,HS,AT).
# HR categories - HD, H264, HD-x264, 720p and 1080p (any type; [hx]264, MPEG2 etc.).
# SR categories - SD, XviD and (SD-)x264 (any type; xvid, x264, etc.).
# SA: SD avi/XviD, DVD and BluRay rips only - any enabled category.
# SX: SD x264/mp4 matches only - any enabled category (not > 480p).
# H7: 720[px] matches only - any enabled category.
# H1: 1080[ipx] matches only - any enabled category.
# DD: DVDr, DVD9, DVD5, BR2DVD (disk, not XviD or x264 and > 3GB, Newznab sites only).
# HS: Current Watch List season match - any quality, any enabled category.
# AT: Anything matching title - any quality, any enabled category (new or old, Last ep ignored).
TvRes=

# Where to put the watch list/auto downloaded Video nzbs - NzbDir/VidNzbs.
#
# Use HoldDir to send nzbs to the hold directory for later sampling or queueing.
#
# Use a Sample category, e.g. Movies/Sample, to check quality 
# before downloading the full nzb.
#
# One of the above Categories, HoldDir, or empty/0/no (later untested)
VidNzbs=Movies

# Default quality level when adding movie nzbs to the watchlist (BD,DD,HD,DR,R5,SC,TC,CM,AL).
# BD: BLURAY, BD25, BD50 (disc, not XviD or x264 and > 10GB, Newznab sites only).
# DD: DVDR, DVD9, DVD5, BR2DVD (disk, not XviD or x264 and > 3GB, Newznab sites only).
# HD: HD x264 - (M)BluRay, HDDVD, B[RD]Rip, DVDRip.
# DR: SD XviD - DVDRip, B[RD]Rip.
# R5: RC, R2, R4, R5, R6.
# SC: Screener, SCRRip, DVDScr, VODRip, WEBRip, PPVRip, HDTV, HDRip.
# TC: Telecine, TC.
# TS: Telesync, TS.
# CM: CAM, HDCAM.
# AL: Any Title Year match found in enabled categories.
VidRes=

# Db Categories.
#
# The titles of downloads to the following categories will be added to the Db.
# Includes downloads to any subcategories.
#
# NOTE: You need to include your parent TV and Video categories to avoid dupes and redownloading.
#
# NOTE: Starting in r151 this setting does nothing.
# At least for now, only downloads to TvNzbs and VidNzbs categories are/can be added to the db.
#
# One or more of the above Categories
DbCats=Movies, TV

### Nzbs ###

# Manual NzbDir scan (,yes,no).
#
# Any time PPWeb fetches/receives an nzb it will tell NZBGet to scan for new nzbs.
#
# NOTE: This is no longer optional and there is no point in disabling it.
# It will be removed once all the 'if NzbScan' checks are removed from PPWeb.
#
# yes/1 to enable, no/empty/0 to disable
NzbScan=yes

# Video year (,yes,no).
#
# Weather or not to include any year label in the nzb-name.
# Typically movies, true = Title year.ext.
#
# Disabling this could have unexpected effects, the 'no' setting hasn't been tested in years.
#
# yes/1 to enable, no/empty/0 to disable
Year=yes

# TV episode Title (,yes,no).
#
# auto fetch episode titles.
#
# Weather or not to get episode title and append it to nzb-name.
# True = Show episode - ep-title.ext.
#
# yes/1 to enable, no/empty/0 to disable
EpTitle=yes

# TV episode label format (,SEL,SEU,NXL,NXU,NNN).
#
# Watch list and Databse format is NNN.
# Listing title format is SEL.
# Saved files can have the format of your choice.
#
# SEL: Show sNNeNN.
# SEU: Show SnnEnn.
# NXL: Show NxNN.
# NXU: Show nXnn.
# NNN: Show nnn.
#
# SEL, SEU, NXL, NXU, NNN or empty/default (NNN)
EpLabel=SEL

# Re-fetch a current TV episode when the listing has a matching label.
#
# Some posts are flawed and are re-posted with 'proper', 'repack','real, etc.? labels.
# Enabling this will fetch nzbs with matching labels and send them to the hold directory.
# Note: This only happens if the initial download didn't have a matching label.
# This allows you to queue the nzb only when wanted/needed.
# Most flaws are minor and not worth the extra download.
#
# empty/disabled, a single label or a comma separated list of labels, e.g. proper, repack
GetFix=

# Extract archived nzbs - zip/rar (,yes,no).
#
# When this option is enabled, any downloaded zips are automatically extracted.
# The only reason to set this to "no" is if you want to use another script for nzb processing.
#
# yes/1 to extract archived nzb's, no/empty/0: don't/disabled
ExtractNzb=yes

# Use archive base-name for nzb-name (,yes,no).
#
# This is the main title on nzb browse/search pages or 
# the file base-name of uploaded nzb archives (.zip or .rar).
#
# Note: Archives containing multiple nzbs will use the nzb names.
# If Rename is enabled, those nzbs will be renamed by nzb
# process before they are queued (assumming .'s or _'s in filename).
#
# yes/1 or no/0/empty
ArchName=yes

# Extracted nzb file extension (,nzb,nzb_processed).
#
# When extracting archived nzbs, PPWeb can save the nzb with a .nzb or .nzb_processed extension.
# If you are using PPWeb for all nzb tasks, use nzb_processed.
# The only reason to set this to "no" is if you want to use another script for nzb processing.
#
# nzb_processed, nzb or ''/empty
NzbExt=nzb_processed

# Sample rars - number of rars to download for sample (,0,2,3,4,5,6,7,8,9).
#
# To enable sampling for Category, add Category/Sample to Categories.
# e.g. Movies/Sample and TV/Sample.
#
# When you click a Queue to Sample link a sample nzb will be created and queued.
# The sample nzb will contain/download the number of rars you set here. 
# The full nzb will be stored in hold where it can be resumed or deleted later.
#
# Note: "rars" includes files w/ file type extension, e.g. .mkv.001.
# These are not joined ("extracted") and can only be played from Dir's: download.
#
# This has gotten rather crude since ~14mb per rar is no longer a standard.
# Replacing this with a target size option is on the todo list.
#
# 2-9 or empty/0/no to disable sampling
NzbRars=3 

# NzbTrim - remove unwanted files from the nzb before queueing it.
#
# PPWeb will scan the nzb and remove any files with matching labels.
# Labels are any keyword with a space, period or underscore on both sides.
# e.g. title.foo.bar.subs.ext would match if you included 'subs' here.
#
# This allows you to download only what you need/want and remove the rest.
# e.g. sample, extras, artwork, other, subs, subtitles, subpack, vobsubs, sfv, srr.
#
# ''/empty to disable trim function.
# 'keyword' or 'keyword1, keyword2, keyword3' = true
NzbTrim=

# TrimSave - create an nzb containing some/all of the files removed by NzbTrim.
#
# Add all/some/none of your NzbTrim labels here.
# Matching files will be added to an nzb written and saved in /hold/other.
# The created nzb can be queued or deleted from the hold other webpage.
#
# Since I seldom want/use the packaged subs I include them in NzbTrim (above).
# Because there are cases where I might want them I also include them here.
# e.g. subs, subtitles, subpack, vobsubs.
#
# ''/empty  to disable trim save function.
# 'keyword' or 'keyword1, keyword2, keyword3' = selective save, 'all' = save all
NzbSave=

### PP Save/Delete/Rename ###

# DelRars - delete (or save) the rars from the current and successfully extracted rar set (,yes,no).
#
# 1/yes = delete, 0/no/empty = save to DestDir/Save/nzb-name
DelRars=yes

# DelPars - delete the pars associated with the current and successfully extracted rar set (,yes,no).
#
# Note: includes split avi segments joined by par2
#
# 1/yes = delete, 0/no/empty = save to DestDir/Save/nzb-name
DelPars=yes

# DelExt - also delete files with these extensions.
#
# Include "lck" to delete ppweb lock files (I know, it should be done internally).
# Nzbs are moved to DestDir after extraction, include "nzb" here to delete them.
# Par2 backs up files it repairs using a .1 extension, include "1" to delete them.
# Remote post-processing makes/uses shell scripts, include "sh" to delete them.
#
# ''/empty = false/none, 'ext' or 'ext1, ext2, ext3' = true
DelExt=1, sfv, sh, lck, nzb

# SaveExt - when moving and/or renaming downloaded files, save files with these extentions.
#
# Any non listed extension will be left in the download directory and can be moved/deleted via the web interface.
#
# Do not include par or rar extensions (handled by above DelRars + DelPars).
#
# Options:
# ''/empty = no move or rename.
# 'foo' or 'foo, bar, baz' = specify save ext's, e.g. 'avi, bmp, divx, html, idx, jpg, mp3, srt, sub, txt, zip, pdb, pdf'.
# 'all' = save any ext's not deleted (DelRars, DelPars, DelExt)
SaveExt=all

# Move SaveExt files to SaveDir when post processing is complete. 
#
# Like DestDir, SaveDir is the parent of Category sub-directories.
# SaveExt files will be moved to matching categories in SaveDir.
# Note: when remote processing, SaveDir is on the remote PC.
#
# With DestDir all SaveExt files are located in nzb-name (Title ep/yr, etc.) directories.
# SaveDir allows you to group SaveExt files in Category and other directories.
# SaveExt's can be sent to Show Name(/Season), nzb-name, and Category directories.
# You can even send SaveExt files with matching extentions to a custom named directory.
# See the settings below and the PPWeb How-to page.
#
# Using SaveDir also allows you to move SaveExt files to locations outside of the /ppweb tree.
#
# NOTE: If SaveDir is not in /ppweb and is not owned by the server/script user:
# Either SaveDir or all Categories in SaveDir will need 777/rwxrwxrwx permissions.
# If manually setting SaveDir to 777 is undesireable (e.g. is a user home dir):
# SaveDir Categories will need to be manually created and set to 777.
# Otherwise, manually setting SaveDir to 777 (once) is all you need to do.
# In either case:
# Setting SavePerms (below) to 0666 is needed to give sub-directories/files 777/666 permisions.
#
# Options:
# ''/empty = leave all files where they were downloaded (DestDir).
# 'save' (or other name) = move SaveExt files to a sub-directory of PPWebDir.
# '/full/path/dir' = move SaveExt files to a location outside of the PPWeb file tree.
SaveDir=save

# Filter SaveDir by age (0-99).
#
# If you're archiving in SaveDir, you probably only want to see additions made in the last few days.
#
# Default, empty or 0, setting shows all files in SaveDir on Downloads : Complete page.
# When this is set to n (1-99) days, only downloads completed in the last n days will be shown.
SaveAge=

# SaveDir SaveExt file permissions (,0644,0666).
#
# You only need to set this if you cannot do what you want with the files is SaveDir.
#
# Examples:
# If SaveDir (or Categories) is not owned by the server/script user:
# Saving and deleting sub-directories/files needs 777/666 permisions.
#
# If SaveDir is owned by the server/script user, but has a 002 Umask:
# Using the "URL" links to play files over the network needs 644 permissions.
# Note: default/typ 022 Umask = 644 files (002 = 600, 000 = 666).
#
# ...There are cases where where extracted files are not affected by Umask.
# Unpacked SaveExt files may end up with 600 perms (rare) unless SavePerms is used.
#
# Options:
# ''/empty = no chmod (keep Umask perms).
# 0644 = world readable SaveExt files.
# 0666 = 777/666, world access/write for all SaveDir (or Category) sub-directories and SaveExt files.
SavePerms=

# TvCats - optional Category sub-directories - SaveDir/Category/TvCats.
#
# Without this option all TV SaveExt files get sent to SaveDir/TV (default).
# Using this setting you can (selectively) categorize SaveExt files by show name - SaveDir/TV/Show.
#
# This option can be a list of TV shows or 'all'.
# Show names should match PPWeb listing show names, or your watch list save names, and will work in any category.
# 'all' will only work with categories that have "TV" in the name/path, e.g. if TvNzbs = TV.
#
# Options:
# ''/empty = no TV show name sub-directories.
# 'show' or 'show1, show2, show3' = create show name sub-directories for listed show(s).
# 'all' = create show name sub-directories for all TV shows.
TvCats=all

# TvCatSeason - optional TvCat Season sub-directories - SaveDir/Category/TvCats/TvCatSeason.
#
# In what TvCats directories should Season sub-directories be created.
#
# The db and watch list format is s0N.
# Season sub-directories can have the format of your choice.
#
# Directory name format:
# S0N - Season [01-99].
# SNN - Season [1-99].
# s0N - s[01-99].
# 0N - [01-99].
# NN - [1-99].
#
# Since r148 you can enter a comma separated list of watch list save names.
# With this option the directory format is Season [01-99] or Season [year].
# This option is only useful if TvCats=all.
#
# Options:
# ''/empty = no season sub-directories.
# S0N, SNN, s0N, 0N or NN = specify the sub-directory format and always create/use season sub-directories.
# 'show' or 'show1, show2, show3' = create/use Season [01-99] sub-directories for listed show(s).
TvCatSeason=

# NzbCats - optional Category sub-directories - SaveDir/Category/NzbCats.
#
# In what SaveDir Categories should nzb-name sub-directories be created.
#
# This is handy for categories where the nzbs download more than a few SaveExt files.
# e.g. for mp3 albums in Music category, NzbCats=Music.
#
# In r149 I added an untested NzbCats=all (but TV) option.
#
# Options:
# ''/empty = no nzb-name sub-directories.
# 'cat' or 'cat1, cat2, cat3' =  create nzb-name sub-directories in listed categories.
# 'all' = create nzb-name sub-directories in all but "TV" categories.
NzbCats=

# MiscExt allows you to move specified extensions to a specified directory.
#
# File extension(s) to move to MiscDir, do not include in SaveExt.
#
# ''/empty = none, 'foo' or 'foo, bar' = true. 
MiscExt=

# MiscDir - where to save MiscExt.
#
# ''/empty or '/full/path'
MiscDir=

# Rename - rename SaveExt files downloaded/saved to listed Categories.
#
# The goal of rename is to strip nzb-names to movie-title, artist-album and show-episode names, 
# i.e. remove group names, type labels (DVD, XviD, etc.), etc.
# The nzb browse and search page main titles are stripped (non configurable at the moment)
# and are the titles that will be used by Rename (when possible).
#
# ''/empty = no renaming, 'dir' or 'dir1, dir2, dir3' = rename files in these Categories
Rename=Movies, TV

# NoRenameExt - Do not rename files with listed extensions.
#
# Files to rename are either included in SaveExt or excluded here.
# This option is only useful if SaveExt is set to "all".
#
# ''/empty = false/none, 'ext' or 'ext1, ext2, ext3' = true
NoRenameExt=dll, exe, bat, vcf

# MergeAvis - if title a.ext and title b.ext exist, merge them to create title.ext (,yes,no).
#
# Note: requires transcode or mencoder and only works when Rename is enabled.
#
# 1/yes = true, 0/no/empty = false 
MergeAvis=

### Remote Post Processing ###

# Remote post processing requires key-pairs (both directions), ssh, rsync and scp. 
# A copy of nzbgetpp.pl, ppweb.pm and ppweb.conf need to be in RemoteDest (below) on RemotePC.
# the remote nzbgetpp.pl $Config, require and $IsRemote settings need to be edited.
# Remote PP disables standard post processing and enables remote processing.
# Remote processing is automatic if the remote is up. 
# Delayed processing can be triggered from links on the web interface download page.
#
# Enabling/using SaveDir scp links to send files to a remote PC requires a key-pair and scp.
# a key-pair is needed to allow NzbgetPC to send files to RemoteDest without name/password.
#
# Shell address of the remote machine.
# 'user@host', 'user@IPaddress', 'IPaddress', 'host'... or ''/empty to disable remote processing
RemotePC=

# Shell address of the NZBGet machine.
#
# 'user@host', 'user@IPaddress', 'IPaddress', 'host'... or ''/empty
NzbgetPC=

# Remote PP shell script permissions (0700,0755,0777).
#
# Permissions of shell scripts sent to, and executed by, RemotePC.
#
# typically 0755
ScriptPerms=0755

# RemoteDest - the remote PP destination directory.
#
# NOTE: Leave this empty to disable remote PP and enable remote scp links in local SaveDir.
# When RemoteDest is enabled, SaveDir is a directory on the RemotePC.
#
# This is the remote post processing directory containing copies or nzbgetpp.pl, ppweb.conf and ppweb.pm.
# Directories in the local DestDir will be moved here to be processed.
# Processed files will then be moved to SaveDir if SaveDir is enabled and exists on the remote.
#
# '/full/path/on/remote'
RemoteDest=

# KBps - rsync Kilobytes per second (KBps).
#
# Used when copying directories from DestDir to RemoteDest for remote processing.
# A lower number uses less system resources - e.g. 2000 uses 1/2 the system resources on my system ~10%.
# note: Nice settings only affect the remote because the remote initiates the transfer.
#
# '[number]' or ''/empty
KBps=

# ScpDir - SaveDir links for copying folders or files from local SaveDir to remote ScpDir.
#
# note: It works, but not like I want, the web interface will likely time out on large files.
#
# Enabling/using SaveDir scp links requires setting this to an existing directory on RemotePC.
# Categories, TvCatSeason and TvCat sub-directories are ignored.
#
# '/full/path/on/remote'
ScpDir=

### WF Nzbsorg ###

# Enable Nzbsorg (,yes,no).
#
# Weather or not to automatically update browse pages and queue watch list matches.
# Note: enables/disables scheduled updates only. 
# Sites can always be updated from the "u" links in the side menu.
# Pages can always be created/updated from Search/Update buttons.
#
# yes/1 to enable, no/empty/0 to disable
NO_Enable=

# Nzbsorg Newznab API Key.
#
# Copy/paste the Site Api/Rss Key from your Nzbsorg Profile page.
#
NO_Key=

# Nzbsorg Newznab TV categories.
#
# A single or comma separated list of category NUMBERS.
# Multiple entries = one combined page containing the newest 50 listings.
#
# NOTE: Watch List SR/HR settings will only match nzbs in matching categories (parens).
# Other Watch List options are not category specific (per se).
#
# 5000 = All.
# 5010 = DVD.
# 5030 = SD (SR).
# 5040 = HD (HR).
# 5060 = Other.
# 5070 = BoxSD (SR).
# 5080 = Foreign.
# 5090 = BoxHD (HR).
#
# Note: If you have a Nzbsorg My-Shows page, you can select/Update it from the 
# Search/Update menu to add it to your side menu.
# You can also enter -3 here, but only as a single category entry (see also Newznab : NN_Watch).
NO_TV=

# Nzbsorg Newznab Movies categories.
#
# A single or comma separated list of category NUMBERS.
# Multiple entries = one combined page containing the newest 50 listings.
#
# 2000 = All.
# 2010 = DVD.
# 2020 = WMV-HD.
# 2030 = XviD.
# 2040 = x264.
# 2050 = Other.
# 2060 = Foreign.
# 2070 = 3D.
#
# Note: If you have a Nzbsorg My-Movies page, you can select/Update it from the Search/Update menu to add it to your side menu.
# It's not very useful, but you can also enter -4 here, but only as a single category entry (see also Newznab : NN_Watch).
NO_Movies=

# Optional Movie filters
# Nzbsorg has the best API implementation I've seen (makes plot, gere and actor hover info possible).
# Because of that, most PPWeb queries are done via their API (VS RSS on other sites).
# While PPWeb has numerous setting to control what you see and download, this allows you to fine tune things.
# NOTE: The filters you add here are applied to ALL updates and searches.
# Most of the filters are already applied in some way and to some degree, this allows you to fine tune things.
# e.g. I watch SD and HD categories but filter out h264/1080 posts using &fmt=1,2
#
# Options:
# Age (within x days): &age=7 
# TV airdate (within x days): &aired=3 
# Video resolution (SD=1, HD=2, HD+=3), supports multiple resolutions : &res=2 | &res=2,3 
# Video format (XviD=1, x264=2, h264=3), supports multiple formats: &fmt=2 | &fmt=2,3 
# Language (2-letter ISO abbreviation): &lang=EN (default)
# Released (Rld'd=1, +No Nukes=2): &rls=2 
# Minimum size (in MB): &minsize=100 (100MB) 
# Maximum size (in MB): &maxsize=7000 (7GB) 
# Minimum completion: &completion=98 
# Password status (No Detected Password=0, Potentially Passworded=1, Passworded=2): &password=0
#
# Enter one or more filters as a string, e.g. '&res=1,2&fmt=2' (no spaces and no quotes)
# NO_Movie_Filters=
# NO_TV_Filters=

# Browse and search resolution filter (,1,2,3,12,23).
# This, and the following filters, may be useful for fine tuning your selected category(s).
# None of the filters are required, i.e. use them only if you want to tweak things.
# The filters are applied to all browse and search pages, any and all categories - TV, Movies, etc.
# SD=1, HD=2, HD+=3. I think HD is 720 and HD+ is 1080.
# options are: empty/disabled, 1/SD, 2/HD, 3/HD+, 12(1,2)/SD and HD or 23(2,3)/HD and HD+.
NO_res=

# Browse and search video format filter.
# XviD=1, x264=2, h264=3.
# options are - '1', '2', '3', '1,2' or '2,3' (sans quotes).
NO_fmt=

# Browse and search min size filter.
# Minimum post size in megabytes - 10-999.
NO_min=

# Browse and search max size filter.
# Maximum post size in megabytes - 100-99999.
# 7000 = 7GB, 700 = 700MB.
NO_max=

# Default browse page for Nzbs.Org (,TV,Movies).
#
NO_Default=


### WF Nzbsin ###

# Enable Nzbsin (,yes,no).
#
# https://nzbs.in/index.php
#
# ...No sooner discovered and its already closed to new registrations
# This new free site with a lot features, possibly more than all the others.
# I have had conectivity issues and other things not work as expected.
# The feeds look to be the same as Nsbsu and Dognzb.
#
# Weather or not to automatically update browse pages and queue watch list matches.
# Note: enables/disables scheduled updates only. 
# Sites can always be updated from the "u" links in the side menu.
# Pages can always be created/updated from Search/Update buttons.
#
# yes/1 to enable, no/empty/0 to disable
NI_Enable=

# Nzbsin API Key.
#
# Copy/paste the Site Api/Rss Key from your Nzbsin Profile page.
NI_Key=

# Nzbsin TV categories.
#
# A single or comma separated list of category NUMBERS.
# Multiple entries = one combined page containing the newest 50 listings.
#
# NOTE: Watch List SR/HR settings will only match nzbs in SD 5030/HD 5040 categories.
# Other Watch List options are not category specific (per se).
#
# 5000 = All.
# 5020 = Foreign.
# 5030 = SD (SR).
# 5040 = HD (HR).
# 5050 = Other.
# 5060 = Sport.
# 5070 = Anime.
# 5080 = Documentary.
NI_TV=

# Nzbsin Movies categories.
#
# A single or comma separated list of category NUMBERS.
# Multiple entries = one combined page containing the newest 50 listings.
#
# 2000 = All.
# 2010 = Foreign.
# 2020 = other.
# 2030 = SD.
# 2040 = HD.
# 2050 = BluRay.
# 2060 = 3D.
NI_Movies=

# Other Nzbsin browse pages.
#
# Automatically update browse only pages for listed categories (not for watch-list). 
# You can do this manually by selecting a category and clicking Search/Update (empty search).
#
# NOTE: each entry gets its own browse page, NOT a combined page like TV and Movies.
# Other is a work in progress. It has not been extensively tested and may change.
#
# 1000=Console, 1010=Console-NDS, 1080=Console-PS3, 1020=Console-PSP, 1030=Console-Wii, 
# 1040=Console-Xbox, 1050=Console-Xbox-360, 1060=Console-WiiWare-VC, 1070=Console-XBOX-360-DLC,
# 3000=Audio, 3030=Audio-Audiobook, 3040=Audio-Lossless, 3010=Audio-MP3, 3020=Audio-Video, 
# 4000=PC, 4010=PC-0day, 4050=PC-Games, 4020=PC-ISO, 4030=PC-Mac,
# 4040=PC-Mobile-Other, 4060=PC-Mobile-iOS, 4070=PC-Mobile-Android,
# 6000=XXX, 6010=XXX-DVD, 6020=XXX-WMV, 030=XXX-XviD, 
# 6040=XXX-x264, 6050=XXX-Pack, 6060XXX-ImgSet,
# 7000=Other, 7030=Other-Comics, 7020=Other-Ebook, 7010=Other-Misc.
#
# A single or comma separated list of category NUMBERS to update.
# NI_Other=

# Default browse page for Nzbsin (TV,Movies).
NI_Default=

### WF Pwnzb ###

# Enable Pwnzb (,yes,no).
#
# http://pwnzb.com/
#
# NO API/RSS REQUESTS WITH FREE ACCOUNT makes this only usable for paid users
#
# Weather or not to automatically update browse pages and queue watch list matches.
# Note: enables/disables scheduled updates only. 
# Sites can always be updated from the "u" links in the side menu.
# Pages can always be created/updated from Search/Update buttons.
#
# yes/1 to enable, no/empty/0 to disable
PN_Enable=

# Pwnzb API Key.
#
# Copy/paste the Site Api/Rss Key from your Pwnzb Profile page.
PN_Key=

# Pwnzb TV categories.
#
# A single or comma separated list of category NUMBERS.
# Multiple entries = one combined page containing the newest 50 listings.
#
# NOTE: Watch List SR/HR settings will only match nzbs in SD 5030/HD 5040 categories.
# Other Watch List options are not category specific (per se).
#
# 5000 = All.
# 5020 = Foreign.
# 5030 = SD (SR).
# 5040 = HD (HR).
# 5050 = Other.
# 5060 = Sport.
# 5070 = Anime.
# 5080 = Documentary.
PN_TV=

# Pwnzb Movies categories.
#
# A single or comma separated list of category NUMBERS.
# Multiple entries = one combined page containing the newest 50 listings.
#
# 2000 = All.
# 2010 = Foreign.
# 2020 = other.
# 2030 = SD.
# 2040 = HD.
# 2050 = BluRay.
# 2060 = 3D.
PN_Movies=

# Other Pwnzb browse pages.
#
# Automatically update browse only pages for listed categories (not for watch-list). 
# You can do this manually by selecting a category and clicking Search/Update (empty search).
#
# NOTE: each entry gets its own browse page, NOT a combined page like TV and Movies.
# Other is a work in progress. It has not been extensively tested and may change.
#
# 1000=Console, 1010=Console-NDS, 1080=Console-PS3, 1020=Console-PSP, 1030=Console-Wii, 
# 1040=Console-Xbox, 1050=Console-Xbox-360, 1060=Console-WiiWare-VC, 1070=Console-XBOX-360-DLC,
# 3000=Audio, 3030=Audio-Audiobook, 3040=Audio-Lossless, 3010=Audio-MP3, 3020=Audio-Video, 
# 4000=PC, 4010=PC-0day, 4050=PC-Games, 4020=PC-ISO, 4030=PC-Mac,
# 4040=PC-Mobile-Other, 4060=PC-Mobile-iOS, 4070=PC-Mobile-Android,
# 6000=XXX, 6010=XXX-DVD, 6020=XXX-WMV, 030=XXX-XviD, 
# 6040=XXX-x264, 6050=XXX-Pack, 6060XXX-ImgSet,
# 7000=Other, 7030=Other-Comics, 7020=Other-Ebook, 7010=Other-Misc.
#
# A single or comma separated list of category NUMBERS to update.
# PN_Other=

# Default browse page for Pwnzb (TV,Movies).
PN_Default=

### WF Nzbtv ###

# Enable Nzbtv (,yes,no).
#
# http://nzbtv.net/
#
# API/RSS requests limited to 50/day w/ free account.
#
# Weather or not to automatically update browse pages and queue watch list matches.
# Note: enables/disables scheduled updates only. 
# Sites can always be updated from the "u" links in the side menu.
# Pages can always be created/updated from Search/Update buttons.
#
# yes/1 to enable, no/empty/0 to disable
NT_Enable=

# Nzbtv API Key.
#
# Copy/paste the Site Api/Rss Key from your Nzbtv Profile page.
NT_Key=

# Nzbtv TV categories.
#
# A single or comma separated list of category NUMBERS.
# Multiple entries = one combined page containing the newest 50 listings.
#
# NOTE: Watch List SR/HR settings will only match nzbs in SD 5030/HD 5040 categories.
# Other Watch List options are not category specific (per se).
#
# 5000 = All.
# 5020 = Foreign.
# 5030 = SD (SR).
# 5040 = HD (HR).
# 5050 = Other.
# 5060 = Sport.
# 5070 = Anime.
# 5080 = Documentary.
NT_TV=

# Nzbtv Movies categories.
#
# A single or comma separated list of category NUMBERS.
# Multiple entries = one combined page containing the newest 50 listings.
#
# 2000 = All.
# 2010 = Foreign.
# 2020 = other.
# 2030 = SD.
# 2040 = HD.
# 2050 = BluRay.
# 2060 = 3D.
NT_Movies=

# Other Nzbtv browse pages.
#
# Automatically update browse only pages for listed categories (not for watch-list). 
# You can do this manually by selecting a category and clicking Search/Update (empty search).
#
# NOTE: each entry gets its own browse page, NOT a combined page like TV and Movies.
# Other is a work in progress. It has not been extensively tested and may change.
#
# 1000=Console, 1010=Console-NDS, 1080=Console-PS3, 1020=Console-PSP, 1030=Console-Wii, 
# 1040=Console-Xbox, 1050=Console-Xbox-360, 1060=Console-WiiWare-VC, 1070=Console-XBOX-360-DLC,
# 3000=Audio, 3030=Audio-Audiobook, 3040=Audio-Lossless, 3010=Audio-MP3, 3020=Audio-Video, 
# 4000=PC, 4010=PC-0day, 4050=PC-Games, 4020=PC-ISO, 4030=PC-Mac,
# 4040=PC-Mobile-Other, 4060=PC-Mobile-iOS, 4070=PC-Mobile-Android,
# 6000=XXX, 6010=XXX-DVD, 6020=XXX-WMV, 030=XXX-XviD, 
# 6040=XXX-x264, 6050=XXX-Pack, 6060XXX-ImgSet,
# 7000=Other, 7030=Other-Comics, 7020=Other-Ebook, 7010=Other-Misc.
#
# A single or comma separated list of category NUMBERS to update.
# NT_Other=

# Default browse page for Nzbtv (TV,Movies).
NT_Default=

### WF Nzbsu ###

# Enable Nzbsu (,yes,no).
#
# http://nzb.su/index.php
#
# No longer allows free API/RSS access, only a useful option if you are a VIP
# This is a free/paid site, a number of options are limited to VIP's.
# Feeds look to be the same as dognzb, but provide a bit more data.
#
# Weather or not to automatically update browse pages and queue watch list matches.
# Note: enables/disables scheduled updates only. 
# Sites can always be updated from the "u" links in the side menu.
# Pages can always be created/updated from Search/Update buttons.
#
# yes/1 to enable, no/empty/0 to disable
NS_Enable=

# Nzbsu API Key.
#
# Copy/paste the Site Api/Rss Key from your Nzbsu Profile page.
NS_Key=

# Limited free account (,yes,no).
#
# Free accounts are limited to 10 nzbs per day.
# NOTE: This isn't tracked, this setting currently does nothing.
#
# Only VIP users have access to TV and Movie watchlists.
#
# yes/1 to enable, no/empty/0 to disable
NS_Free=

# Nzbsu TV categories.
#
# A single or comma separated list of category NUMBERS.
# Multiple entries = one combined page containing the newest 50 listings.
#
# NOTE: Watch List SR/HR settings will only match nzbs in SD 5030/HD 5040 categories.
# Other Watch List options are not category specific (per se).
#
# 5000 = All.
# 5020 = Foreign.
# 5030 = SD (SR).
# 5040 = HD (HR).
# 5050 = Other.
# 5060 = Sport.
# 5070 = Anime.
# 5080 = Documentary.
NS_TV=

# Nzbsu Movies categories.
#
# A single or comma separated list of category NUMBERS.
# Multiple entries = one combined page containing the newest 50 listings.
#
# 2000 = All.
# 2010 = Foreign.
# 2020 = other.
# 2030 = SD.
# 2040 = HD.
# 2050 = BluRay.
# 2060 = 3D.
NS_Movies=

# Other Nzbsu browse pages.
#
# Automatically update browse only pages for listed categories (not for watch-list). 
# You can do this manually by selecting a category and clicking Search/Update (empty search).
#
# NOTE: each entry gets its own browse page, NOT a combined page like TV and Movies.
# Other is a work in progress. It has not been extensively tested and may change.
#
# 1000=Console, 1010=Console-NDS, 1080=Console-PS3, 1020=Console-PSP, 1030=Console-Wii, 
# 1040=Console-Xbox, 1050=Console-Xbox-360, 1060=Console-WiiWare-VC, 1070=Console-XBOX-360-DLC,
# 3000=Audio, 3030=Audio-Audiobook, 3040=Audio-Lossless, 3010=Audio-MP3, 3020=Audio-Video, 
# 4000=PC, 4010=PC-0day, 4050=PC-Games, 4020=PC-ISO, 4030=PC-Mac,
# 4040=PC-Mobile-Other, 4060=PC-Mobile-iOS, 4070=PC-Mobile-Android,
# 6000=XXX, 6010=XXX-DVD, 6020=XXX-WMV, 030=XXX-XviD, 
# 6040=XXX-x264, 6050=XXX-Pack, 6060XXX-ImgSet,
# 7000=Other, 7030=Other-Comics, 7020=Other-Ebook, 7010=Other-Misc.
#
# A single or comma separated list of category NUMBERS to update.
# NS_Other=

# Default browse page for Nzbsu (TV,Movies).
NS_Default=

### WF Dognzb ###

# Enable Dognzb (,yes,no).
#
# http://dognzb.cr/login
#
# ... no longer accepting new users... now forcing all free accounts to switch to paid.
# You'll have to let me know if this quits working, I'm not going to pay just so that I can do an occasional test.
#
# This is a free/paid site, a number of options are limited to VIP's.
# I'm not going to be able to do much w/ this one.
# The feed data they provide is very limited.
# It may be that VIPs get more data and have access to watchlist feeds.
# If that is the case, please let me know.
#
# If you use Dognzb push (VIP), push to SAB (VS nzbget) has more features.
# See Configure : Newznab.
# If you use push to nzbget, check Configure ServerPort.
# PPWeb nzbget default is 6788 (VS 6789).
# 
# Weather or not to automatically update browse pages and queue watch list matches.
# Note: enables/disables scheduled updates only. 
# Sites can always be updated from the "u" links in the side menu.
# Pages can always be created/updated from Search/Update buttons.
#
# yes/1 to enable, no/empty/0 to disable
DN_Enable=

# Dognzb API Key.
#
# Copy/paste the Site Api/Rss Key from your Dognzb Profile page.
DN_Key=

# # Limited free account (,yes,no).
# #
# # Not sure what the limitations are here.
# # Changing this setting will do nothing.
# #
# # yes/1 to enable, no/empty/0 to disable
# DN_Free=

# Dognzb TV categories.
#
# A single or comma separated list of category NUMBERS.
# Multiple entries = one combined page containing the newest 50 listings.
#
# NOTE: Watch List SR/HR settings will only match nzbs in SD 5030/HD 5040 categories.
# Other Watch List options are not category specific (per se).
#
# 5000 = your Dognzb checked/selected My categories : TV.
# 5020 = Foreign.
# 5030 = SD (SR).
# 5040 = HD (HR).
# 5050 = Other.
# 5060 = Sport.
# 5070 = Anime.
# 5080 = Documentary.
DN_TV=

# Dognzb Movies categories.
#
# A single or comma separated list of category NUMBERS.
# Multiple entries = one combined page containing the newest 50 listings.
#
# 2000 = your Dognzb checked/selected My categories : Movies.
# 2010 = Foreign.
# 2020 = other.
# 2030 = SD.
# 2040 = HD.
# 2050 = BluRay.
# 2060 = 3D.
DN_Movies=

# Other Dognzb browse pages.
#
# Create browse only pages for listed categories (not for watch-list). 
#
# NOTE: each entry gets its own browse page, NOT a combined page like TV and Movies.
#
# 1000=Console, 1010=Console-NDS, 1030=Console-Wii, 1050=Console-Xbox-360, 1080=Console-PS3,
# 3000=Audio, 3030=Audio-Audiobook, 3040=Audio-Lossless, 3010=Audio-MP3, 3020=Audio-Video, 
# 4000=PC, 4010=PC-0day, 4050=PC-Games, 4020=PC-ISO, 4030=PC-Mac, 
# 4070=PC-Mobile-Android, 4040=PC-Mobile-Other, 4060=PC-Mobile-iOS,
# 5000=TV, 5070=TV-Anime, 5080=TV-Documentary, 5020=TV-Foreign, 5050=TV-Other, 5060=TV-Sport, 
# 7000=Other, 7030=Other-Comics, 7020=Other-Ebook, 7010=Other-Misc.
#
# A single or comma separated list of category NUMBERS to update.
# DN_Other=

# Default browse page for Dognzb (TV,Movies).
DN_Default=


### WF extras ###

# Site scan order.
#
# The default is to scan enabled sites in the following order.
# 'Nzbsrus, Nzbsorg, Kerews, Nzbsin, Nzbsu, Dognzb'.
#
# A comma separated list of sites or empty to use the default order
SiteOrder=

# Maximum number of nzbs to download from each activated site during an update.
#
# PPWeb allows you do some things that could result in the automatic download of _lots_ of nzbs.
# This setting is a simple safety measure.
# This setting is unrelated to free account tracking.
#
# empty = disabled, any number = enabled
MaxNzbs=

# CU Watch List Option.
#
# You can define your own list of labels, one of which needs to match for an nzb to be auto queued.
# e.g. The predefined list for DR is basically BDRip, BRRip, HDRip, DVDRip.
# using a regular expression list provides more flexibility, including optional spaces/dashes .
# e.g. the actual DR list is [HB][DR][ -]?RIP, DVD[ -]?RIP.
#
# If you define a list here you can choose the CU: Custom quality level.
#CuTvNzbs

# Watch for shows that don't have a season or episode label.
#
# Shows without an episode and with a year will use the text following year as the episode.
# You don't need to enter them here to add them to the watchlist.
# e.g. NASCAR Sprint Cup 2012 and Shark Week 2012.
#
# You may want London 2012 Olympics instead of London 2012.
# Entering London 2012 Olympics? here will do that.
# The "?" means that both Olympic and Olympics will match.
# I'm not sure if the watchlist supports the "?".
# If not, add both titles - comma separated.
#
# Many National Geographic, Discovery, History, etc. series don't have ep/year labels.
# e.g. Megafactories, Megastructures, The True Story, etc.
# 
# Anything that there's more than one of can be listed here for adding to the Watch List and/or for save dir grouping.
# e.g. Loony Tunes, The Captain And The Kids, etc.
#
# This setting only affects how listings and the db are processed.
# You still have to add them to the Watch List.
# Use noep as the Last episode when adding one of these shows to the Watch List.
# After adding a "show" here and updating the appropriate browse page, using the show's Add to Watch List link will do that for you.
#
# Note: You don't need watchlist entries for this to be useful.
# If TvCats=all, or has an entry for a show listed here, your manually queued episodes will get routed there.
#
# NOTE: Be VERY careful with this. ALL Watch List matches not in the db WILL be queued.
# Any db entries with a " - " after the year don't count (they're 'show - ep title', not 'show ep').
# I've added a MaxAge option to mitigate this potential issue, BUT it only works with Newznab sites.
#
# A single or comma separated list of shows
NoEpShows=

# Skip listings that have these labels.
#
# Labels are the text between two periods or after the last period (orig title).
# Since r120 something, labels are the white text to the right of the green titles.
# You can hover your mouse pointer over the green text to see the title as listed on the nzb site.
#
# Once a watch list title match is found it is checked against this list.
# If the full nzb listing title contains a label on this list, the nzb will not be downloaded.
#
# Example:.
# Some listings include multiple quality labels, e.g. R5.foo.DVDRip and TS.bar.720p.
# If you want DVDRips, but not R4, R5, R6 and RC, inlude those R labels here.
#
# Entries I have found useful (quality standard resolution xvid/mp4):.
# dubbed, extras, line, preair, readnfo, sample, vod, vodrip, webrip, 3D, R4, R5, R6, RC, 720p, 1080p.
#
# Note: labels are alphanumeric characters only (case insensitive).
#
# Advanced note: This is converted/used as a (foo|bar|baz) regular expression match and nesting is allowed.
# e.g. subpack, (?:web|vod)-?(?:rip)?, 3D, R\d, RC = (subpack|(?:web|vod)-?(?:rip)?|3D|R\d|RC).
#
# a single label, a comma separated list of labels or empty/disabled
SkipLabels=

# Skip listings with foreign language labels.
#
# This was added because the SkipLabels setting can get crowded.
#
# e.g. NOR, NL, ITA, KORSUB, VOSTFR, danish, finnish, flemish, french, german, hebrew, hindi, russian, spanish, swedish.
# 
# a single label, a comma separated list of labels or empty/disabled.
SkipLang=

# Skip listings posted to select usenet groups.
#
# This was motivated by the rash of incomplete garbage being posted to a.b.movies.
# It was added because the skipping of incomplete posts only works with nzbs.org.
#
# e.g. alt.binaries.movies.
# 
# This is also useful if you like to sample posts, e.g. skip a.b.warez.win95-apps 
# posts to get sampleable a.b.moovee posts (same releases, different posters/packaging).
#
# a single group, a comma separated list of groups or empty/disabled.
SkipGroup=

# Skip listings posted by specified posters.
#
# Not necessarily reliable, but another filtering option.
# Motivated by a fake post with no group name label to add to SkipLabels.
#
# ... Unlike the above skip options, this can be a partial name or email.
# Motivated by spartiate(s) garbage posts, spartiate will match with and without the s.
#
# a single poster, a comma separated list of posters or empty/disabled.
SkipPoster=

# Skip posts less than n percent complete (1-100).
#
# NOTE: Only works with Nzbsorg.
#
# Motivated by a flood of incomplete (< 98%) garbage posts (now ended).
# Changed from a < 100% complete auto skip to a configurable option.
#
# any number between 1 and 100 or empty/disabled
SkipIncomplete=

#
# Only download nzbs with a matching (posting group) label.
#
# This is a rather drastic method to restrict downloads...and won't work if 
# the posting group name is faked.
# If none of the labels listed here are found in the title, the nzb will be skipped.
# TitleWhiteList=
# PosterWhiteList=

# HD Movie resolution (,720,1080).
#
# Limit video watch list downloads to movies with 720p or 1080p labels.
#
# This check is applied after Watch List title and quality level matches are found.
# If the match is still good, this check is applied.
# The listing must contain the selected resolution label to be auto queued.
#
# 720, 1080 or empty/disabled
HdRes=

# Nzbs for TV listings with matching TvHoldLabels will be sent to the HoldDir.
# They will be deleted if/when a nzb without skip or hold label matches is found.
# note: auto deletion only happens if the nzb is downloaded during a site or page update.
#
# Enter any label(s) you don't really want, but would be OK with if nothing else comes along.
#
# This was prompted by SR/SD categories that contain XviD's and x264's.
# If you enter XviD here and a x264 ep is not found before an XviD 
# ep is found, the XviD nzb will be added to the HoldDir.
# If an x264 ep is never found, you can queue the XviD from the hold dir.
# The oposite is true if you enter x264 (entries are case insensitive) here.
# Note: Since r151 this only works with the SR Watch List setting.
# Using the SA or SX settings requires a respective XviD or x264 match.
#
# It may not hold across all sites, but it looks like you could do the same thing 
# in the HR/HD categories using HDTV or WEB-DL as the prefered download.
#
# a single label, a comma separated list of labels or empty/disabled
TvHoldLabels=

# Nzbs for Movie listings with matching VidHoldLabels will be sent to the HoldDir.
# They will be deleted if/when a nzb without skip or hold label matches is found.
# note: auto deletion only happens if the nzb is downloaded during a site or page update.
#
# Enter any label(s) you don't really want, but would be OK with if nothing else comes along.
#
# a single label, a comma separated list of labels or empty/disabled
VidHoldLabels=

# Newsgroups - a custom list of newsgroups for Binsearch searches.
#
# In addition to the standard "popular" (> 400 groups) and "other" (> 3k groups)
# search options, you can do group specific searches for any group you list here.
# e.g. alt.binaries.multimedia, alt.binaries.movies.divx, alt.binaries.e-book...
#
# A comma separated list of newsgroups.
Newsgroups=

### Newznab  ###

# Maximum download size of nzbs to be auto queued by watchlist.
#
# Newznab sites only.
#
# Size in megabytes.
# 1GB = 1024.
# 5GB = 5120.
# 10G = 10240.
MaxSize=

# Minimum download size of nzbs to be auto queued by watchlist.
#
# Size in megabytes.
MinSize=

# Maximum age of nzb to be auto queued by watchlist.
#
# Newznab sites only.
#
# Some options, e.g. date based shows, have no age constraint.
# With those options, any and all matches not found in the database will be auto queued.
# Since r151 PPWeb will auto queue any matches found during all searches and updates.
# It's the searches that are risky because you can get matches from years ago.
# In other words, you could end up queuing a whole lot of nzb's unexpectedly.
#
# Even with this set, it is possible to get a full seasons worth of nzbs for a show on your Watch List.
# It's a good idea to add sNN entries to the database for old seasons that you don't want.
# For the current season there's a Mark previous episodes as seen option when adding from a browse page.
#
# Note: This affects auto queuing only, you can always click browse page Queue links.
# Browse pages have On Watch List flags and Titles will be green unless queued (grey).
#
# Age in days - defaults to 1 when not set
MaxAge=

# Optional routing for nzbs sent or fetched from a Newznab site.
#
# This setting allows you to route all Newznab site categories to the ppweb categories of your choice.
#
# Entries are in the format of Newznab_category(/subcategory):PPWeb_category(/subcategory) (colon separated).
# Multiple entries are comma separated - NN1:PPW1, NN/foo2:PPW2, NN3:PPW/bar3, etc.
#
# First, PPWeb will look for a full Newznab category/subcategory match so that your routing can be very specific.
# e.g. PC/Ebook:SomeCat (nzbs.org) and Other/Ebook:SomeCat (nzb.su).
#
# Second, PPWeb will look for a Newznab parent category match so that routing can be more general.
# e.g Music:SomeCat will send all NewzNab Music categories (mp3, flack, etc.) to SomeCat.
# note: The initial implementation used a flawed regular expression, fixed in r148.
#
# Third, PPWeb will look for a NewzNab sub-category match.
# e.g Ebook:SomeCat works for both PC/Ebook (nzbs.org) and Other/Ebook (nzb.su).
# e.g. Mp3:SomeCat works for both Audio/Mp3 and Music/Mp3 (some newznab sites use Audio parent, others Music).
# NOTE: new in r151.
#
# Fourth, PPWeb will route Newznab TV and Movies parent category matches to your respective TvNzbs and VidNzbs categories.
#
# Fifth, PPWeb will route Newznab category/subcategory to a matching PPWeb category/subcategory (Configure : Categories).
#
# When queuing from a newznab site (SAB) and no matches are found, nzbs are sent to the hold directory.
# Browse and search pages will have links allowing you to queue to any configured category (including hold).
# You can also route NewzNab categories to the hold directory using NN_cat:HoldDir.
#
# The PPWeb Rename function is targeted to TV and Movie nzbs, it likely won't work well in other categories.
# The hold directory has an "edit view" link that allows you to manually rename nzbs before queueing them to categories of your choice.
# If you're using nzbget 9.0-r443 or newer you can edit the name of queued nzbs by clicking on the name in the Nzbgetweb "group" view.
#
# '', 'NN_cat:PPW_cat' or 'NN_cat1:PPW_cat1, NN_cat/sub-cat2:PPW_cat2, NN_cat3:PPW_cat/sub-cat3' 
NN_Cats=

# Auto fetch My-Shows and My-Movies nzbs during scheduled updates (,yes,no).
#
# NOTE: This setting is NOT needed if you populate the PPWeb Watch List.
# Use the Add to Watch List links to add your My Shows/Movies to the PPWeb Watch List.
#
# If you enable this, you don't need to populate the PPWeb Watch List.
# You do need populated My-Shows and/or My-Movies on one or more Newznab sites.
# You do loose some features when you do this, e.g. custom/consistent show names.
# The PPWeb Watch List allows you to enter multiple show name variations and a save name.
# e.g. Sometimes a listing will include a show year, sometimes it won't.
# The watchlist can catch both and save the show with any name you want (Save Title).
# You also loose the ability to set the queue priority for Watch List items.
# The Watch List 'mark previous episodes (current season) as seen' option is also lost.
#
# NOTE: There is no ep/season or quality/type checking with this option.
# Anything that isn't in the database ("Db has:") could be queued (depends on other settings, e.g. MaxAge).
# It's recommended that you use (Search/)Update My Shows/Movies to see what will be auto queued before enabling this.
# Any green title (VS grey) will be auto queued.
#
# Checks that do apply:
# Tv/Vid HoldLabels.
# Skip Labels/Lang.
# Max Size/Age.
# GetFix.
# 
# NOTE: This setting only applies if XX_TV is set to -3 (My-Shows category) and/or XX_Movies is set to -4 (My-Movies category).
# Only XX_TV and XX_Movies category pages are auto updated at scheduled intervals.
# XX_TV and/or XX_Movies set to one or more 4 digit categories are unaffected by this setting.
# My_Shows and My_Movies pages are also unaffected.
# If you set XX_TV or XX_Movies to -3 or -4, you can delete the duplicate My-Shows or My-Movies page.
#
# yes/1 to enable, no/empty/0 to disable
NN_Watch=

# Auto fetch My Cart nzbs (,yes,no).
#
# Setting this to yes will automatically fetch/queue the contents of your newznab cart.
# Note: Only nzbs with TvNzbs, VidNzbs, NN_Cats (above) or Categories category matches can be auto queued.
#
# This only happens when you manually update your My Cart page.
# The only thing this does is save you manually clicking the Queue links for each of the nzb's in you cart.
# What you loose is the chance to rename the nzb before it is sent to the queue.
#
# yes/1 to enable, no/empty/0 to disable
NN_Cart=

# Sites using Newznab allow queueing nzbs from the site.
# PPWeb has been tested w/ nzbs.org, nzbs.in, nzb.su and kere.ws.
# I cannot test dogzipp, but this should work for manual and 
# push downloads if you use SAB settings (not nzbget).
#
# In addition to the settings on this page, the newznab site
# needs to reach your webserver.
# It doesn't need to reach you PPWeb install, just your server.
#
# Your webserver also needs to rewrite the query string that the site sends.
# I have tested both of the following with my Profile URL set to 
# http://[my public IP address]/.
# note: don't use the EOL periods, they were needed to format this page.
#
# For Apache rewrite (set the full path to ppweb_sab.cgi).
# RewriteEngine on.
# RewriteCond %{QUERY_STRING} your_PPWebKey_here.
# RewriteRule ^/api/? /full_path_to/ppweb/ppweb/cgi-bin/ppweb_sab.cgi.
# only requests with a matching QUERY_STRING will be rewritten.
#
# For Lighttpd rewrite (adjust the relative path if needed).
# url.rewrite-once = (.
#     "^/api/?\?(.+)$" => "/ppweb/ppweb/cgi-bin/ppweb_sab.cgi?$1".
# ).
#
# The SABnzbd Integration section of your newznab site Profile needs a URL and a key.
# Make up a key, enter it here and on all your Newznab sites.
PPWebKey=

### Notification ###

# Email notification  (,yes,no,fail).
#
# PPWeb can send you an email after an nzb had been downloaded and post processed.
# The email will let you know if post processing succeded (OK) or not (FAILED).
#
# Selecting fail will only send notice of post processing failures.
#
# yes/1/fail to enable, no/empty/0 to disable
SendEmail=

# Send the email TO what address - foo@bar.com.
EmailTo=

# Send the email FROM what address, something the TO server will accept.
EmailFrom=

# Full path to sendmail.
Sendmail=/usr/lib/sendmail

##########################
